# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class HomeworkItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass

class DangItem(scrapy.Item):
    '''
    图书信息封装
    （图书id，书名，标题，图片，价格，作者，时间，出版社，评分，详细）
    '''
    table = "book" # 表名
    id = scrapy.Field()
    book = scrapy.Field()
    title = scrapy.Field()
    pic = scrapy.Field()
    price = scrapy.Field()
    author = scrapy.Field()
    time = scrapy.Field()
    phouse = scrapy.Field()
    score = scrapy.Field()
    detail = scrapy.Field()